package com.demo.studentmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zjia
 */
@TableName("teaching")
@Data
@Accessors(chain = true)
public class Teach {

    @ApiModelProperty
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "课程号")
    private String cno;

    @ApiModelProperty(value = "教师号")
    private String tno;

    @ApiModelProperty(value = "任教时长")
    private Integer cterm;

}
